package com.ruoyi.web.ydz.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.TreeEntity;

import java.util.List;

/**
 * 疾病管理对象 disease
 *
 * @author DRX
 * @date 2024-10-16
 */
public class Disease extends TreeEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 疾病名称 */
    @Excel(name = "疾病名称")
    private String name;

    /** 父级id */
    @Excel(name = "父级id")
    private Long pid;

    /*疾病详情*/
    private String content;

    /** 加群二维码 */
    @Excel(name = "加群二维码")
    private String iconpath;

    /** 是否推荐 0.否1.是 （废弃，冗余字段） */
    @Excel(name = "是否推荐 0.否1.是 ", readConverterExp = "废=弃，冗余字段")
    private String isRecommend;

    /** 排序 */
    @Excel(name = "排序")
    private Long sortid;

    /** 是否删除（0否1是） */
    @Excel(name = "是否删除", readConverterExp = "0=否1是")
    private String isDel;

    /*子集*/
    private List<Disease> childrens;

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public List<Disease> getChildrens() {
        return childrens;
    }

    public void setChildrens(List<Disease> childrens) {
        this.childrens = childrens;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }
    public void setPid(Long pid)
    {
        this.pid = pid;
    }

    public Long getPid()
    {
        return pid;
    }
    public void setIconpath(String iconpath)
    {
        this.iconpath = iconpath;
    }

    public String getIconpath()
    {
        return iconpath;
    }
    public void setIsRecommend(String isRecommend)
    {
        this.isRecommend = isRecommend;
    }

    public String getIsRecommend()
    {
        return isRecommend;
    }
    public void setSortid(Long sortid)
    {
        this.sortid = sortid;
    }

    public Long getSortid()
    {
        return sortid;
    }
    public void setIsDel(String isDel)
    {
        this.isDel = isDel;
    }

    public String getIsDel()
    {
        return isDel;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("name", getName())
                .append("createTime", getCreateTime())
                .append("pid", getPid())
                .append("iconpath", getIconpath())
                .append("isRecommend", getIsRecommend())
                .append("sortid", getSortid())
                .append("isDel", getIsDel())
                .append("updateTime", getUpdateTime())
                .append("updateBy", getUpdateBy())
                .toString();
    }
}
